import 'package:app/common/tool.dart';
import 'package:app/components/base_scaffold_appbar.dart';
import 'package:app/pages/account_security_module/account_security_controller.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class AccountSecurityView extends GetView{


  @override
  AccountSecurityController controller = Get.put(AccountSecurityController());

  AccountSecurityView({super.key});

  @override
  Widget build(BuildContext context) {
    // TODO: implement build

    return Scaffold(
      appBar: BaseAppBar(preferredSize: Size(Get.width, AppTool.appBarHEIGHT),
      child: const Text('账号安全'),),
      body: GetBuilder<AccountSecurityController>(builder: (_){
        return ListView(
          children: [
            Container(
              padding: EdgeInsets.all(15),
              height: 50,
              color: Colors.white,
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: [
                  const Text('推送'),
                  Row(
                    children: [
                      Text('${controller.pushEnabled}'),
                      Icon(Icons.arrow_forward_ios_sharp,size: 15,color: Colors.grey,),
                    ],
                  )
                ],
              ),
            )
          ],
        );
      }),
    );
  }

}